<?php
/* $Id: choose.issues.php,v 1.3 2003/10/08 07:19:34 tuxmonkey Exp $ */
/**
 * @package Issue-Tracker
 * @subpackage Issues
 */

if (strpos($_SERVER['PHP_SELF'],basename(__FILE__)) !== false) {
  print "Direct module access forbidden.".basename(__FILE__);exit;}
  

if (!is_employee()) {
  access_denied();
}

$links[] = array(
  "txt" => "Inventaire (circulariser par email)",
  "url" => "?module=assets&action=inventory",
  "img" => $_ENV['imgs']['copy']
);

$sql  = "SELECT aid,userid ";
$sql .= "FROM z_asset_users ";
$sql .= "WHERE resp='t'";

//if($_GET['start'] != "ALL") {
//    $sql .= "AND UPPER(".username(userid);
//    $sql .= ") LIKE '".$_GET['start']."%' ";
//}

$users = $dbi->fetch_all($sql,"array");

$smarty->assign('users',$users);
$smarty->display("assets/choose_resp.tpl");
?>